]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Fix JS warning
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 21 Jan 2019 20:40:10 +0000 (21:40 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Feb 2019 15:25:54 +0000 (16:25 +0100)
The solution is pointed out by the warning itself.

js/ui/keyboard.js

index 6ecef255c199fb976af0a0f6acd52dd6c1ff6a63..cbfdb091443bdcc743e18f902b7d767371d3ffc7 100644 (file)
@@ -278,7 +278,7 @@ var Key = class Key {
     }
 
     _getKeyval(key) {
-        let unicode = String.charCodeAt(key, 0);
+        let unicode = key.charCodeAt(0);
         return Clutter.unicode_to_keysym(unicode);
     }